<template>
  <div class="bg">
    <Category title="游戏">
      <template scope="obj">
        <ul>
          <li v-for="(g,index) in obj.games" :key="index">
            {{g}}
          </li>
        </ul>
      </template>
    </Category>

    <Category title="游戏">
      <template scope="{games}">
        <ol>
          <li style="color: red;" v-for="(g,index) in games" :key="index">
            {{g}}
          </li>
        </ol>
      </template>
    </Category>

    <Category title="游戏">
      <template slot-scope="{games}">
        <h4   v-for="(g,index) in games" :key="index">{{g}}</h4>
      </template>
    </Category>
  </div>
</template>

<script>
import Category from "@/components/Category";
export default {
  name: "App",
  components: {Category},
}
</script>

<style lang="less">
.bg{
    display: flex;
    justify-content: space-around;
    margin-top: 100px;
  img{
    width: 100%;
  }
  video{
    width: 100%;
  }
  .more{
    display: block;
    text-align: center;
    margin-top: 10px;
  }
  .foot{
    display: flex;
    justify-content: space-around;
  }
  .welcome{
    text-align: center;
  }
  h4{
    text-align: center;
  }
}
</style>
